﻿using NodeEditor;

namespace ETHotfix
{
    [NodeEvent(typeof(GetBoolNode))]
    public class GetBoolNodeHandle : NodeHandle<GetBoolNode>
    {
        const string valueStr = "value";
        protected override void OnHandle(RuntimeTree runtimeTree, RuntimeNode runtimeNode, GetBoolNode data, Unit unit)
        {
            data.value = runtimeTree.runtimeValue.GetValue(data.key,data.value);
            runtimeNode.SetOutputValue(valueStr, data.value);
        }
    }
}